package com.cn.controller.dz;


import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.cn.controller.BaseServlet;
import com.cn.dao.Car_infoDao;
import com.cn.entity.CarConfigure_entity;

@WebServlet("/car_info")
public class Car_info extends BaseServlet {

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		Car_infoDao cid = new Car_infoDao();
		CarConfigure_entity carconfig  = new  CarConfigure_entity();
		String carid= req.getParameter("carid");
		System.out.println(carid);
		carconfig = 	cid.getCarConfigure(carid);
		req.setAttribute("carConfig", carconfig);
		forward("dz_/car_info");
	}
}
